require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 1,["5"] = 1,["6"] = 1,["8"] = 3,["9"] = 4,["10"] = 1,["11"] = 6,["12"] = 8,["13"] = 8,["14"] = 8,["15"] = 8,["16"] = 6,["17"] = 11,["18"] = 12,["19"] = 13,["20"] = 11,["21"] = 16,["22"] = 17,["23"] = 18,["24"] = 16,["25"] = 21,["26"] = 22,["27"] = 23,["28"] = 21,["29"] = 26,["30"] = 27,["31"] = 28,["32"] = 26,["33"] = 31,["34"] = 32,["35"] = 33,["36"] = 31,["37"] = 36,["38"] = 37,["39"] = 38,["40"] = 36,["41"] = 41,["42"] = 42,["43"] = 43,["44"] = 41,["45"] = 46,["46"] = 47,["47"] = 48,["48"] = 46,["49"] = 51,["50"] = 52,["51"] = 53,["52"] = 51});
local ____exports = {}
____exports.BinaryWriter = __TS__Class()
local BinaryWriter = ____exports.BinaryWriter
BinaryWriter.name = "BinaryWriter"
function BinaryWriter.prototype.____constructor(self)
    self.values = {}
    self.fmj = ">"
end
function BinaryWriter.prototype.__tostring(self)
    return string:pack(
        self.fmj,
        table.unpack(self.values)
    )
end
function BinaryWriter.prototype.writeDouble(self, value)
    self.fmj = self.fmj .. "d"
    __TS__ArrayPush(self.values, value)
end
function BinaryWriter.prototype.writeFloat(self, value)
    self.fmj = self.fmj .. "f"
    __TS__ArrayPush(self.values, value)
end
function BinaryWriter.prototype.writeInt16(self, value)
    self.fmj = self.fmj .. "h"
    __TS__ArrayPush(self.values, value)
end
function BinaryWriter.prototype.writeInt32(self, value)
    self.fmj = self.fmj .. "i4"
    __TS__ArrayPush(self.values, value)
end
function BinaryWriter.prototype.writeInt8(self, value)
    self.fmj = self.fmj .. "b"
    __TS__ArrayPush(self.values, value)
end
function BinaryWriter.prototype.writeString(self, value)
    self.fmj = self.fmj .. "z"
    __TS__ArrayPush(self.values, value)
end
function BinaryWriter.prototype.writeUInt16(self, value)
    self.fmj = self.fmj .. "H"
    __TS__ArrayPush(self.values, value)
end
function BinaryWriter.prototype.writeUInt32(self, value)
    self.fmj = self.fmj .. "I4"
    __TS__ArrayPush(self.values, value)
end
function BinaryWriter.prototype.writeUInt8(self, value)
    self.fmj = self.fmj .. "B"
    __TS__ArrayPush(self.values, value)
end
return ____exports
